import http from '@/utils/http.js'

// 用户小程序登录
export const login = (data) => http.post('/chatapi/login/mini', data, true)

// 用户密码登录
export const loginPwd = (data)=> http.post('/chatapi/login/pwd', data)

// 登录用户信息
export const userInfo = ()=> http.get('/chatapi/info')

// 用户注册
export const register = (data)=> http.post('/chatapi/user/add', data)

// 修改用户信息
export const updateInfo = (data)=> http.post('/chatapi/user/edit', data)

// 退出登录
export const logout = ()=> http.post('/chatapi/logout')